import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/antborrow-mgr/stareportfile/page',
    method: 'get',
    params: query
  })
}

export function rebuild(id) {
  return request({
    url: '/antborrow-mgr/stareportfile/rebuild/' + id,
    method: 'put'
  })
}

/**
 */
export function download(id) {
  return request({
    url: '/antborrow-mgr/stareportfile/download/' + id,
    method: 'get',
    responseType: 'blob'
  })
}
